<h2 class="pageTitle">Analysis of worked hours</h2>
{include $data.pathToError}

<div style="margin: 1em;">
    <a target="_blank" href="{$data.root}print.php?input=worked_hours" class="basicButton">Print this report</a>
</div>

<table class="list">
    <tr>
        <td></td>
        {foreach $data.keys as $i => $key}
            <th>{$key.description}</th>
        {/foreach}
    </tr>
    {foreach $data.output as $i => $row}
        <tr>
            <th>{$row.user.name} {$row.user.surname}</th>
            {foreach $row.values as $j => $value}
                <td class="printCenter">
                    <a class="printA" target="_blank" href="{$data.root}?input=timesheets&amp;af={$value.filter}" class="baseLink">{$value.withAC}/{$value.withoutAC}</a>
                </td>
            {/foreach}
        </tr>
    {/foreach}
    <tr>
        <th>Spolu</th>
        {foreach $data.sums as $i => $sum}
            <th>{$sum.with}/{$sum.without}</th>
        {/foreach}
    </tr>
</table>